﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class AccountDetailInfoConfig: EntityTypeConfiguration<AccountDetailInfo>
    {
        public AccountDetailInfoConfig()
        {
            ToTable("Himall_AccountDetails");
            Property(item => item.OrderRefundsDates).HasColumnType("varchar").HasMaxLength(500);
            Property(item => item.PaymentTypeName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.ShopName).HasColumnType("varchar").HasMaxLength(100);
            HasRequired(x => x.Himall_Accounts).WithMany(x => x.Himall_AccountDetails).HasForeignKey(x => x.AccountId);
        }
    }
}
